from rest_framework import serializers
from .models import User,CateNew,News,Teacher,Student

class NewSweializer(serializers.ModelSerializer):
    class Meta:
        model = News
        fields = '__all__'
class TeacherSweializer(serializers.ModelSerializer):
    class Meta:
        model = Teacher
        fields = '__all__'
class SutendsSweializer(serializers.ModelSerializer):
    class Meta:
        model = Student
        fields = '__all__'